import argparse
import datetime
import threading
import time
import webbrowser
import requests  # 用于发起post请求

if __name__ == '__main__':
    print('test')
    url = 'https://cn.bing.com/ttranslatev3?isVertical=1&&IG=FFFF11FE1F4E4CD89E3312461FC1032B&IID=translator.5028.14'  # 请求地址
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36'}  # 设置请求头
    post_data = {'fromlang': 'zh-Hans', 'text': '你好', 'to': 'en'}  # 设置请求参数
    result = requests.post(url, headers=headers).content.decode()  # 发出请求并将请求数据转换为str格式
    print(result)